<?if(isset($system_message))echo $system_message;?>
<?if($schedule):?>
<table class="table table-hover">
		<thead class="tabular-head">
		<tr>
			<th>Subject Code</th>
			<th>Subject Description</th>
			<th>Day</th>
			<th>Time</th>
			<th>Teacher</th>
		</tr>
		</thead>
		<tbody class="tabular">
  <? if(!empty($student_subjects)) :?>
  <? foreach($student_subjects as $row) :?>
			<tr>
				<td><?= $row->subj_code ;?></td>
				<td><?= $row->subj_desc ;?></td>
				<td><?= $row->day ;?></td>
				<td><?= $row->time;?></td>
				<td><?= $row->teacher_name;?></td>
			</tr>
		<? endforeach ;?>
  <? else: ?>
			<tr class="info">
				<td colspan="5">-- No Subjects --</td>
			</tr>
  <? endif;?>
  </tbody>
</table>
<?else:?>
<div class="alert-box">Please select a student from the list.</div>
<?endif;?>